package com.xxxt.entity;

import java.util.List;

//专业实体类
public class Specialty {
private String specialtyId;//专业id

private String specialtyName;//专业名

private College college;//与专业关联的学院对象
	
private List<Grade> grades;//与专业关联的年级所有实体

public Specialty(String specialtyId, String specialtyName, College college, List<Grade> grades) {
	super();
	this.specialtyId = specialtyId;
	this.specialtyName = specialtyName;
	this.college = college;
	this.grades = grades;
}
public Specialty(String specialtyId, String specialtyName, College college) {
	super();
	this.specialtyId = specialtyId;
	this.specialtyName = specialtyName;
	this.college = college;
}
public Specialty(String specialtyName, College college, List<Grade> grades) {
	super();
	this.specialtyName = specialtyName;
	this.college = college;
	this.grades = grades;
}
public Specialty() {}
public String getSpecialtyId() {
	return specialtyId;
}
public void setSpecialtyId(String specialtyId) {
	this.specialtyId = specialtyId;
}
public String getSpecialtyName() {
	return specialtyName;
}
public void setSpecialtyName(String specialtyName) {
	this.specialtyName = specialtyName;
}
public College getCollege() {
	return college;
}
public void setCollege(College college) {
	this.college = college;
}
public List<Grade> getGrades() {
	return grades;
}
public void setGrades(List<Grade> grades) {
	this.grades = grades;
}
@Override
public String toString() {
	return "Specialty [specialtyId=" + specialtyId + ", specialtyName=" + specialtyName + ", college=" + college
			+ ", grades=" + grades + "]";
}


}
